package com.zrf.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * Product entity. @author MyEclipse Persistence Tools
 */

public class Product implements java.io.Serializable {

	// Fields

	private Storage storage;
	private Integer pid;
	private String pname;
	private Integer pnum;
	private Double pprice;
	private Set checks = new HashSet(0);
	private Set manifests = new HashSet(0);

	// Constructors

	/** default constructor */
	public Product() {
	}

	/** full constructor */
	public Product(String pname, Integer pnum, Double pprice, Set checks,
			Set manifests) {
		this.pname = pname;
		this.pnum = pnum;
		this.pprice = pprice;
		this.checks = checks;
		this.manifests = manifests;
	}

	// Property accessors

	public Product(Storage storage, String name, Integer num, Double price) {
		super();
		this.storage = storage;
		this.pname = name;
		this.pnum = num;
		this.pprice = price;
	}

	public Storage getStorage() {
		return this.storage;
	}

	public void setStorage(Storage storage) {
		this.storage = storage;
	}

	
	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getPname() {
		return this.pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public Integer getPnum() {
		return this.pnum;
	}

	public void setPnum(Integer pnum) {
		this.pnum = pnum;
	}

	public Double getPprice() {
		return this.pprice;
	}

	public void setPprice(Double pprice) {
		this.pprice = pprice;
	}

	public Set getChecks() {
		return this.checks;
	}

	public void setChecks(Set checks) {
		this.checks = checks;
	}

	public Set getManifests() {
		return this.manifests;
	}

	public void setManifests(Set manifests) {
		this.manifests = manifests;
	}

}